package com.lagou.deu.Controller;

import com.lagou.deu.mvcframework.servlet.annotataions.LagouAutowired;
import com.lagou.deu.mvcframework.servlet.annotataions.LagouController;
import com.lagou.deu.mvcframework.servlet.annotataions.LagouRequestMapping;
import com.lagou.deu.mvcframework.servlet.annotataions.Security;
import com.lagou.deu.service.DemoService;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@LagouRequestMapping("/demo")
@LagouController
public class DemoController {

    @LagouAutowired
    private DemoService service;

    @LagouRequestMapping("/get")
    @Security({"lisi","zhangsan"})
    public void get(HttpServletRequest request, HttpServletResponse response, String username){
        service.get(username);

    }
}
